import request from '@/utils/request.js'

/**
 * 登录验证
 * @param {Object} data {username,password}
 * @returns {Promise}
 */
export function goLogin (data) {
  return request({
    url: '/login',
    method: 'POST',
    data
  })
}
/**
 * 用户数据列表
 * @param {Object} params
 * @returns {Promise}
 */
export function getList (params) {
  return request({
    url: '/users',
    method: 'POST',
    params
  })
}
